package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizJidiansheshidingqijianxiuMapper;
import com.manage.project.biz.domain.BizJidiansheshidingqijianxiu;
import com.manage.project.biz.service.IBizJidiansheshidingqijianxiuService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizJidiansheshidingqijianxiuServiceImpl implements IBizJidiansheshidingqijianxiuService
{
    @Autowired
    private BizJidiansheshidingqijianxiuMapper bizJidiansheshidingqijianxiuMapper;

    /**
     * 查询机电设施定期检修
     *
     * @param id 机电设施定期检修主键
     * @return 机电设施定期检修
     */
    @Override
    public BizJidiansheshidingqijianxiu selectBizJidiansheshidingqijianxiuById(Long id)
    {
        return bizJidiansheshidingqijianxiuMapper.selectBizJidiansheshidingqijianxiuById(id);
    }

    /**
     * 查询机电设施定期检修列表
     *
     * @param bizJidiansheshidingqijianxiu 机电设施定期检修
     * @return 机电设施定期检修
     */
    @Override
    public List<BizJidiansheshidingqijianxiu> selectBizJidiansheshidingqijianxiuList(BizJidiansheshidingqijianxiu bizJidiansheshidingqijianxiu)
    {
        return bizJidiansheshidingqijianxiuMapper.selectBizJidiansheshidingqijianxiuList(bizJidiansheshidingqijianxiu);
    }

    /**
     * 新增机电设施定期检修
     *
     * @param bizJidiansheshidingqijianxiu 机电设施定期检修
     * @return 结果
     */
    @Override
    public int insertBizJidiansheshidingqijianxiu(BizJidiansheshidingqijianxiu bizJidiansheshidingqijianxiu)
    {
        bizJidiansheshidingqijianxiu.setCreateTime(DateUtils.getNowDate());
        return bizJidiansheshidingqijianxiuMapper.insertBizJidiansheshidingqijianxiu(bizJidiansheshidingqijianxiu);
    }

    /**
     * 修改机电设施定期检修
     *
     * @param bizJidiansheshidingqijianxiu 机电设施定期检修
     * @return 结果
     */
    @Override
    public int updateBizJidiansheshidingqijianxiu(BizJidiansheshidingqijianxiu bizJidiansheshidingqijianxiu)
    {
        bizJidiansheshidingqijianxiu.setUpdateTime(DateUtils.getNowDate());
        return bizJidiansheshidingqijianxiuMapper.updateBizJidiansheshidingqijianxiu(bizJidiansheshidingqijianxiu);
    }

    /**
     * 批量删除机电设施定期检修
     *
     * @param ids 需要删除的机电设施定期检修主键
     * @return 结果
     */
    @Override
    public int deleteBizJidiansheshidingqijianxiuByIds(Long[] ids)
    {
        return bizJidiansheshidingqijianxiuMapper.deleteBizJidiansheshidingqijianxiuByIds(ids);
    }

    /**
     * 删除机电设施定期检修信息
     *
     * @param id 机电设施定期检修主键
     * @return 结果
     */
    @Override
    public int deleteBizJidiansheshidingqijianxiuById(Long id)
    {
        return bizJidiansheshidingqijianxiuMapper.deleteBizJidiansheshidingqijianxiuById(id);
    }
}
